package com.hanrui.android.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.hanrui.android.R;
import com.hanrui.android.model.MeetingListBean;

import javax.inject.Inject;

/**
 * Created by Administrator on 2018/2/9.
 */

public class MeetAdapter extends BaseQuickAdapter<MeetingListBean,BaseViewHolder> {
    @Inject
    public MeetAdapter(){
        super(R.layout.item_meet);
    }

    @Override
    protected void convert(BaseViewHolder helper, MeetingListBean item) {
        helper.setText(R.id.house_tv,item.getLocation())
                .setText(R.id.title,item.getName())
                .setText(R.id.start_time,item.getMeetingDateStart())
                .setText(R.id.stop_time,item.getMeetingDateEnd());
    }
}